package com.dao;

import com.model.AgentAlipayAccount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AgentAlipayAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentAlipayAccount record);

    int insertSelective(AgentAlipayAccount record);

    AgentAlipayAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentAlipayAccount record);

    int updateByPrimaryKey(AgentAlipayAccount record);

    @Select("SELECT DISTINCT USER_ID FROM agent_alipay_account WHERE SETTLE_WAY=#{settleWay}")
    List<Long> selectAgentIdListBySettleWay(@Param("settleWay") Integer workDay);

    AgentAlipayAccount  selectByAgentId(@Param("agentId") Long agentId);
}